package cn.botter.subject.domain.handler.subject;

import cn.botter.subject.common.enums.SubjectInfoTypeEnum;
import cn.botter.subject.domain.entity.SubjectInfoBO;
import org.springframework.stereotype.Component;

@Component
public interface SubjectTypeHandler {
    /**
     * 枚举身份的识别
     * @return
     */
    SubjectInfoTypeEnum getHandlerType();

    /**
     * 实际的插入
     * @param subjectInfoBO
     */
    void add(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO query(Integer id);
}
